Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
struct System.​Diagnostics.​ActivityCreationOptions<​T>
Assembly: System.Diagnostics.DiagnosticSource
Encapsulates all the information that is sent to the activity listener, to make decisions about the creation of the activity instance, as well as its state. The possible generic type parameters are <see cref="T:System.Diagnostics.ActivityContext" /> or <see cref="T:System.String" /> .
Properties
public
ActivitySource
Source
Gets the activity source that creates the activity.
public
string
Name
Gets the name to use as OperationName of the activity that will get created.
public
ActivityKind
Kind
Gets the activity kind that the activity will be created with.
public
T
Parent
Gets the parent context or parent Id that the activity will get created with.
public
Collections.​Generic.​IEnumerable<​Collections.​Generic.​KeyValuePair<​string, object>>
Tags
Gets the tags that the activity will be created with.
public
Collections.​Generic.​IEnumerable<​ActivityLink>
Links
Gets the enumeration of activity links that the activity will be created with.
public
ActivityTagsCollection
SamplingTags
Gets the collection that is used to add more tags during the sampling process. The added tags are also added to the created Activity if it is decided that it should be created by the <see cref="T:System.Diagnostics.ActivityListener" /> callbacks.
public
ActivityTraceId
TraceId
Gets the trace Id to use in the Activity object if it is decided that it should be created by <see cref="T:System.Diagnostics.ActivityListener" /> callbacks.
public
string
TraceState
Gets or initializes the trace state to use when creating the Activity.
Methods
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object